﻿
namespace Codemonk.Common.Aspect
{
    /// <summary>
    /// 对象适配器
    /// </summary>
    /// <typeparam name="T">必须是接口</typeparam>
    public interface IObjectAdapter<T>
    {
        /// <summary>
        /// 适配对象
        /// </summary>
        /// <param name="obj">要适配的对象</param>
        /// <param name="name"></param>
        /// <returns></returns>
        T Adapt(T obj, string name);
    }
}
